<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript">
			var list=new Array("agaga","sjsh shs","shsfk jua","doshosga","dphdjh","sthhrth");
			document.write("在以下字符中:"+"<br/>");
			var count=0;
			
			for(var i in list){
				document.write(list[i]+"<br/>");
				if(list[i].indexOf("a")>0||list[i].indexOf("A")>0){
					count+=1;
				}
				
			}
			document.write("共有"+count+"个字符中包含a或A");
		</script>
	</head>
	<body>
		
	</body>
</html>
